Currently dom0 cannot call panic_notifier_list in panic().
This is caused by PAL_HALT called from smp_send_stop().
When dom0 calls PAL_HALT, Hypervisor reset system.
So if dom0 panic, we cannot use panic_notifier_list.
Current PAL_HALT of xen is different from ia64 specification.
This patch fixes this issue.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
}
break;
case PAL_HALT:
- if (current->domain == dom0) {
- printk ("Domain0 halts the machine\n");
- console_start_sync();
- (*efi.reset_system)(EFI_RESET_SHUTDOWN,0,0,NULL);
- } else {
- set_bit(_VPF_down, ¤t->pause_flags);
- vcpu_sleep_nosync(current);
- status = PAL_STATUS_SUCCESS;
- }
+ set_bit(_VPF_down, ¤t->pause_flags);
+ vcpu_sleep_nosync(current);
+ status = PAL_STATUS_SUCCESS;
break;
case PAL_HALT_LIGHT:
if (VMX_DOMAIN(current)) {